import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-08-13
 * Time: 18:57
 */
public class Test {
    public static void main(String[] args) {
        int[] array1 = {1,2,3};
        int[] array2 = {1,2,3};
        int[] array3 = new int[3];
        array3 = new int[]{2, 2, 2};
        System.out.println(array1 == array2);
        System.out.println(Arrays.equals(array1,array2));
    }
}
